/*
 * Copyright [duowan.com]
 * Web Site: http://www.duowan.com
 * Since 2005 - 2014
 */

package com.duowan.realtime.service;

import java.util.List;

import com.duowan.common.util.page.Page;
import com.duowan.realtime.model.ServerInfo;
import com.duowan.realtime.query.ServerInfoQuery;


/**
 * [ServerInfo] 的业务操作
 * 
 * @author badqiu email:badqiu(a)gmail.com
 * @version 1.0
 * @since 1.0
 */
public interface ServerInfoService {

	/** 
	 * 创建ServerInfo
	 **/
	public ServerInfo create(ServerInfo serverInfo);
	
	/** 
	 * 更新ServerInfo
	 **/	
    public ServerInfo update(ServerInfo serverInfo);
    
	/** 
	 * 删除ServerInfo
	 **/
    public void removeById(int id);
    
	/** 
	 * 根据ID得到ServerInfo
	 **/    
    public ServerInfo getById(int id);
    
    public List<ServerInfo> getAll();
    
	/** 
	 * 分页查询: ServerInfo
	 **/      
	public Page<ServerInfo> findPage(ServerInfoQuery query);
	
	public ServerInfo getServerIp(String realtimeComputingGroup);
    
}
